﻿package org.openChart.meta.data 
{
	import flash.filters.ConvolutionFilter;
	import org.openChart.meta.BaseObject;
	import org.openChart.meta.Style;
	
	/**
	 * ...
	 * @author Chongyuan
	 */
	public class DataElement extends BaseObject
	{
		private var value:Number;
		//The index is started with 1.
		//private var index:uint;
		
		public function DataElement( object:Style, value:Number) 
		{
			this.value = value;
			//this.index = index;
			super(object);
		}
		
		public function getValue():Number
		{
			return this.value;
		}
		
		public function toString():String
		{
			var str:String = "Object:DataElement ";
			str += "[value = " + value + "]\n";
			return str;
		}
		//public function getIndex():uint
		//{
		//	return this.index;
		//}
	}
	
}